Optimal. Leaf size=153 \[ \frac{3 \sqrt{\frac{\pi }{2}} \cos (a) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{b} x\right )}{4 \sqrt{b}}+\frac{\sqrt{\frac{\pi }{6}} \cos (3 a) \text{FresnelC}\left (\sqrt{\frac{6}{\pi }} \sqrt{b} x\right )}{4 \sqrt{b}}-\frac{3 \sqrt{\frac{\pi }{2}} \sin (a) S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )}{4 \sqrt{b}}-\frac{\sqrt{\frac{\pi }{6}} \sin (3 a) S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )}{4 \sqrt{b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0890601, antiderivative size = 153, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 4, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {3358, 3354, 3352, 3351} \[ \frac{3 \sqrt{\frac{\pi }{2}} \cos (a) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{b} x\right )}{4 \sqrt{b}}+\frac{\sqrt{\frac{\pi }{6}} \cos (3 a) \text{FresnelC}\left (\sqrt{\frac{6}{\pi }} \sqrt{b} x\right )}{4 \sqrt{b}}-\frac{3 \sqrt{\frac{\pi }{2}} \sin (a) S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )}{4 \sqrt{b}}-\frac{\sqrt{\frac{\pi }{6}} \sin (3 a) S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )}{4 \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3358
Rule 3354
Rule 3352
Rule 3351
Rubi steps
\begin{align*} \int \cos ^3\left (a+b x^2\right ) \, dx &=\int \left (\frac{3}{4} \cos \left (a+b x^2\right )+\frac{1}{4} \cos \left (3 a+3 b x^2\right )\right ) \, dx\\ &=\frac{1}{4} \int \cos \left (3 a+3 b x^2\right ) \, dx+\frac{3}{4} \int \cos \left (a+b x^2\right ) \, dx\\ &=\frac{1}{4} (3 \cos (a)) \int \cos \left (b x^2\right ) \, dx+\frac{1}{4} \cos (3 a) \int \cos \left (3 b x^2\right ) \, dx-\frac{1}{4} (3 \sin (a)) \int \sin \left (b x^2\right ) \, dx-\frac{1}{4} \sin (3 a) \int \sin \left (3 b x^2\right ) \, dx\\ &=\frac{3 \sqrt{\frac{\pi }{2}} \cos (a) C\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )}{4 \sqrt{b}}+\frac{\sqrt{\frac{\pi }{6}} \cos (3 a) C\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )}{4 \sqrt{b}}-\frac{3 \sqrt{\frac{\pi }{2}} S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right ) \sin (a)}{4 \sqrt{b}}-\frac{\sqrt{\frac{\pi }{6}} S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right ) \sin (3 a)}{4 \sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.237082, size = 116, normalized size = 0.76 \[ \frac{\sqrt{\frac{\pi }{6}} \left (3 \sqrt{3} \cos (a) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{b} x\right )+\cos (3 a) \text{FresnelC}\left (\sqrt{\frac{6}{\pi }} \sqrt{b} x\right )-3 \sqrt{3} \sin (a) S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )-\sin (3 a) S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )\right )}{4 \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 101, normalized size = 0.7 \begin{align*}{\frac{3\,\sqrt{2}\sqrt{\pi }}{8} \left ( \cos \left ( a \right ){\it FresnelC} \left ({\frac{x\sqrt{2}}{\sqrt{\pi }}\sqrt{b}} \right ) -\sin \left ( a \right ){\it FresnelS} \left ({\frac{x\sqrt{2}}{\sqrt{\pi }}\sqrt{b}} \right ) \right ){\frac{1}{\sqrt{b}}}}+{\frac{\sqrt{2}\sqrt{\pi }\sqrt{3}}{24} \left ( \cos \left ( 3\,a \right ){\it FresnelC} \left ({\frac{\sqrt{2}\sqrt{3}x}{\sqrt{\pi }}\sqrt{b}} \right ) -\sin \left ( 3\,a \right ){\it FresnelS} \left ({\frac{\sqrt{2}\sqrt{3}x}{\sqrt{\pi }}\sqrt{b}} \right ) \right ){\frac{1}{\sqrt{b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 2.21973, size = 653, normalized size = 4.27 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62326, size = 373, normalized size = 2.44 \begin{align*} \frac{\sqrt{6} \pi \sqrt{\frac{b}{\pi }} \cos \left (3 \, a\right ) \operatorname{C}\left (\sqrt{6} x \sqrt{\frac{b}{\pi }}\right ) + 9 \, \sqrt{2} \pi \sqrt{\frac{b}{\pi }} \cos \left (a\right ) \operatorname{C}\left (\sqrt{2} x \sqrt{\frac{b}{\pi }}\right ) - \sqrt{6} \pi \sqrt{\frac{b}{\pi }} \operatorname{S}\left (\sqrt{6} x \sqrt{\frac{b}{\pi }}\right ) \sin \left (3 \, a\right ) - 9 \, \sqrt{2} \pi \sqrt{\frac{b}{\pi }} \operatorname{S}\left (\sqrt{2} x \sqrt{\frac{b}{\pi }}\right ) \sin \left (a\right )}{24 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.56403, size = 129, normalized size = 0.84 \begin{align*} \frac{3 \sqrt{2} \sqrt{\pi } \left (- \sin{\left (a \right )} S\left (\frac{\sqrt{2} \sqrt{b} x}{\sqrt{\pi }}\right ) + \cos{\left (a \right )} C\left (\frac{\sqrt{2} \sqrt{b} x}{\sqrt{\pi }}\right )\right ) \sqrt{\frac{1}{b}}}{8} + \frac{\sqrt{6} \sqrt{\pi } \left (- \sin{\left (3 a \right )} S\left (\frac{\sqrt{6} \sqrt{b} x}{\sqrt{\pi }}\right ) + \cos{\left (3 a \right )} C\left (\frac{\sqrt{6} \sqrt{b} x}{\sqrt{\pi }}\right )\right ) \sqrt{\frac{1}{b}}}{24} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.1657, size = 250, normalized size = 1.63 \begin{align*} -\frac{\sqrt{6} \sqrt{\pi } \operatorname{erf}\left (-\frac{1}{2} \, \sqrt{6} \sqrt{b} x{\left (-\frac{i \, b}{{\left | b \right |}} + 1\right )}\right ) e^{\left (3 i \, a\right )}}{48 \, \sqrt{b}{\left (-\frac{i \, b}{{\left | b \right |}} + 1\right )}} - \frac{3 \, \sqrt{2} \sqrt{\pi } \operatorname{erf}\left (-\frac{1}{2} \, \sqrt{2} x{\left (-\frac{i \, b}{{\left | b \right |}} + 1\right )} \sqrt{{\left | b \right |}}\right ) e^{\left (i \, a\right )}}{16 \,{\left (-\frac{i \, b}{{\left | b \right |}} + 1\right )} \sqrt{{\left | b \right |}}} - \frac{3 \, \sqrt{2} \sqrt{\pi } \operatorname{erf}\left (-\frac{1}{2} \, \sqrt{2} x{\left (\frac{i \, b}{{\left | b \right |}} + 1\right )} \sqrt{{\left | b \right |}}\right ) e^{\left (-i \, a\right )}}{16 \,{\left (\frac{i \, b}{{\left | b \right |}} + 1\right )} \sqrt{{\left | b \right |}}} - \frac{\sqrt{6} \sqrt{\pi } \operatorname{erf}\left (-\frac{1}{2} \, \sqrt{6} \sqrt{b} x{\left (\frac{i \, b}{{\left | b \right |}} + 1\right )}\right ) e^{\left (-3 i \, a\right )}}{48 \, \sqrt{b}{\left (\frac{i \, b}{{\left | b \right |}} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]